<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../../resource/css/bootstrap.min.css"/>
		<link rel="stylesheet" type="text/css" href="../../../resource/css/jedate.css"/>
		<link rel="stylesheet" type="text/css" href="../../../resource/fonts/iconfont.css"/>
		<link rel="stylesheet" type="text/css" href="../../../resource/css/common.css"/>
		
	</head>
	<body>
		<div class="container-fluid">
			<div class="row mheader">
				<div class="col-xs-2 text-left"> <a href="javascript:;" onclick="javascript:history.back(-1);"><span class="iconfont icon-fanhui"></span></a> </div>
				<div class="col-xs-8"><h2>签证详情</h2></div>
				<div class="col-xs-2 text-right"><a href="visa-edit.html">编辑</span></a></div>
			</div>
			<div class="row">
				<dl class="erp-list visa-details">
					
				</dl>
				
			</div>
			
		</div>
	</body>
</html>
<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script src="../../../resource/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../../resource/js/style.js" type="text/javascript" charset="utf-8"></script>
<script>
	$(function () {
		ajaxs('api/buil/builSignHisDetail.do','post',{'p':getP(),'cs_id':sessionStorage.cs_id},function (data) {
			console.log(data);
			var datas=data.data[0];
			switch (datas.state){
				case -1:
                    datas.state='等待审核';
                    break;
                case 0:
                    datas.state='审核通过';
                    break;
                case 1:
                    datas.state='审核未通过';
                    break;
			}

			$('.visa-details').append('<dd>' +
                '<div class="erp-txt visa-txt">' +
                '<p><span>合同编号:</span>'+datas.cc_Code+'</p>' +
                '<p><span class="sp">工程名称:</span><span class="divCon">'+datas.proName+'</span></p>' +
                '<p><span class="sp">申请单位:</span><span class="divCon">'+datas.compName1+'</span></p>' +
                '<p><span>申请时间:</span>'+datas.s_Time+'</p>' +
                '<p><span>审核状态:</span>'+datas.state+'</p>' +
                '</div>' +
                '</dd>' +
                '<dd>' +
                '<div class="erp-txt visa-txt">' +
                '<p><span>签证人:</span>'+datas.createUser+'</p>' +
                '<p class="clearfix">' +
                '<span class="sp">签证内容:</span>' +
                '<span class="divCon">'+datas.s_Content+'</span>' +
                '</p>' +
                '<div class="visa-img clearfix">' +
                '<span class="ximg-txt">现场图:</span>' +
                '<div class="ximg clearfix">' +
                '</div>' +
                '</div>' +
                '</div>' +
                '</a>' +
                '</dd>' +
                '')

				var imgs=datas.s_Img;
				imgs=imgs.split(',');
				for(var i=0;i<imgs.length;i++){
				    $('.clearfix').append('<a href="#"><img src="'+imgs[i]+'"/></a>')

				}




        })





    })


</script>






